this._layout.setSmallProgressText(
(loadingFromPersistence ? persistenceName : 'dom' + (persistenceName ? ' (' + persistenceName + ')' : '')) + (editedUTC ? ' edited on ' + new Date(editedUTC) : '') +
private _storageLoadProgress(
lastLoadedFileName: string) { this._layout.setProgressColor('green'); this._layout.setSmallProgressText('Loading "' + lastLoadedFileName + '" ' + loadedFileCount + ' of ' + totalFileCount + '...'); this._layout.setProgressRatio(
BootController.initialProgress + BootController.domLoadProgressAmount +
BootController.migrateProgressAmount * loadedFileCount / totalFileCount);
this._fileCount = loadedFileCount;
byFullPath: { [fullPath: string]: { [property: string]: string; }; }, domUpdater: storage.attached.UpdateStorage,
persistenceUpdater: storage.attached.UpdateStorage) { alert('Loading ' + err.message); this._layout.setProgressColor('black'); this._layout.setSmallProgressText(
'Loaded ' + this._fileCount + ' files from ' +
(this._loadingFromPersistence ? this._persistenceName : 'dom' + (this._persistenceName ? ' (' + this._persistenceName + ')' : '')) + (this._editedUTC ? ' edited on ' + new Date(this._editedUTC) : '') + '.');
this._layout.setProgressRatio(
BootController.initialProgress + BootController.domLoadProgressAmount +
BootController.migrateProgressAmount);
addEventListener(window, 'keydown', (evt: KeyboardEvent) => { if (evt.keyCode === 83 && evt.ctrlKey) { if (evt.preventDefault) evt.preventDefault();
if ('cancelBubble' in evt) evt.cancelBubble = true; private _getUniqueKey() { var key = window.location.pathname;
var ignoreSuffix = '/index.html';
if (key.length > ignoreSuffix.length && key.slice(key.length - ignoreSuffix.length) === ignoreSuffix)
key = key.slice(0, key.length - ignoreSuffix.length);